home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample SMSAM / SampleSMSAM Source / ThreadStuff / ThreadUtilities.cp < prev    next >
Encoding:
Text File  |  1995-07-28  |  743 b   |  41 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ThreadUtilities.cp
  3.  
  4.     Copyright:    © 1991-1994 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Part of the AOCE Sample SMSAM Package.  Consult the license
  8.     which came with this software for your specific legal rights.
  9.  
  10. */
  11.  
  12.  
  13.  
  14. #ifndef __THREADUTILITIES__
  15. #include "ThreadUtilities.h"
  16. #endif
  17.  
  18. #ifndef __DEBUGGINGGEAR__
  19. #include "DebuggingGear.h"
  20. #endif
  21.  
  22. #pragma segment Main
  23.  
  24. /***********************************|****************************************/
  25.  
  26. #if debug
  27.  
  28. Ptr BLJFailIfNil(Ptr p, const char* fileName, int line) 
  29. {
  30.     if (!p) {
  31.         keith << "FAILIFNIL: file " << fileName << ", line " << line << endl;
  32.         _failoserr(-108);
  33.     }
  34.     
  35.     return p;
  36. }
  37.  
  38. #endif
  39.  
  40. /***********************************|****************************************/
  41.